home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / software / sswitchxp152.exe / source / SpeedswitchXP / CPUSpeed.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-14  |  1.2 KB  |  48 lines

  1. /*
  2.    SpeedswitchXP V1.5
  3.    - Windows XP CPU Frequency Control for Notebooks -
  4.  
  5.    Copyright(c) 2002-2006 Christian Diefer
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License version 2 as 
  9.    published by the Free Software Foundation.
  10.    
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.    
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #ifndef CPUSPEED_H
  22. #define CPUSPEED_H
  23.  
  24. typedef    void (*DELAY_FUNC)(unsigned int uiMS);
  25.  
  26. class CPUSpeed {
  27. public:
  28.     CPUSpeed ();
  29.     ~CPUSpeed ();
  30.  
  31.     // Variables.
  32.     int CPUSpeedInMHz;
  33.  
  34.     // Functions.
  35.     __int64 __cdecl GetCyclesDifference (DELAY_FUNC, unsigned int);
  36.         
  37. private:
  38.     // Functions.
  39.     static void Delay (unsigned int);
  40.     static void DelayOverhead (unsigned int);
  41.  
  42. protected:
  43.     
  44. };
  45.  
  46.  
  47. #endif
  48.